// 业务文件

import request from 'utils/request'

// 获取所有频道
export const getAllChannels = () => {
  return request({
    type: 'get',
    url: '/v1_0/channels',
  })
}

/**
 *  登录认证
 * @param {*} mobile 
 * @param {*} code 
 * @returns 
 */
export const login = (mobile, code) => {
  return request({
    method: 'post',
    url: '/v1_0/authorizations',
    data: {
      mobile,
      code,
    },
  })
}
